Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebasing-branch #163

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Rebasing-branch #163

wants to merge 6 commits into from

Conversation

matthewb99
Copy link
Contributor

Added rebasing function which takes the current oracle price, and sets base_asset_reserve to fix vamm price to oracle price

Added tests to check it works

@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Merging #163 (7b14e07) into main (4c65663) will increase coverage by 0.00%.
The diff coverage is 97.61%.

@@           Coverage Diff           @@
##             main     #163   +/-   ##
=======================================
  Coverage   97.07%   97.07%           
=======================================
  Files          95       95           
  Lines       22994    23035   +41     
=======================================
+ Hits        22322    22362   +40     
- Misses        672      673    +1     
Impacted Files Coverage Δ
packages/margined_perp/src/margined_vamm.rs 37.97% <ø> (ø)
contracts/margined_vamm/src/handle.rs 97.09% <93.75%> (-0.24%) ⬇️
contracts/margined_insurance_fund/src/handle.rs 96.82% <100.00%> (+0.10%) ⬆️
contracts/margined_vamm/src/contract.rs 97.60% <100.00%> (+0.01%) ⬆️
...racts/margined_vamm/src/testing/get_price_tests.rs 100.00% <100.00%> (ø)
...gined_utils/src/contracts/helpers/margined_vamm.rs 86.89% <100.00%> (+0.37%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants